<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="http://richfaces.org/a4j" xmlns:r="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk" template="/template.xhtml">
	<ui:define name="title">Главное меню</ui:define>
	<ui:define name="body">
		<r:panel>
			<f:facet name="header">Главное меню</f:facet>
			<s:link view="/report.xhtml" value="Написать отчет" />
			<ui:repeat value="#{workingDayService.workingDayList}"
				var="workingDay">
				<r:simpleTogglePanel switchType="client"
					label="#{workingDay.day.date} - #{workingDay.person.name}"
					opened="true">
					<h:outputText value="#{workingDay.day.date}">
						<f:convertDateTime pattern="yyyy-MM-dd, EEEEEEEEEE"
							timeZone="#{configurationService.timeZone}" />
					</h:outputText>
					<br />
					<ui:repeat var="workingDayOnProject"
						value="#{workingDay.workingDayOnProjectSet}">
						<h:outputText value="#{workingDayOnProject.description}" /> [<h:outputText
							value="#{workingDayOnProject.amountMinuts}" /> м.]
					</ui:repeat>
					<h:outputText value="#{workingDay.description}" /> [<h:outputText
						value="#{workingDay.amountMinuts}" /> м.]
				</r:simpleTogglePanel>
			</ui:repeat>
			<s:link view="/report.xhtml" value="Написать отчет" />
		</r:panel>
	</ui:define>
</ui:composition>